package com.hcms.system.dao;

import com.hcms.system.domain.AdminDo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface AdminDao {

    AdminDo get(Integer id);

    AdminDo getByUserName(String userName);

    List<AdminDo> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(AdminDo admin);

    int update(AdminDo admin);
}
